package com.cause.entiy.user;

import java.util.ArrayList;
import java.util.List;

public class FunctionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FunctionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFidIsNull() {
            addCriterion("fid is null");
            return (Criteria) this;
        }

        public Criteria andFidIsNotNull() {
            addCriterion("fid is not null");
            return (Criteria) this;
        }

        public Criteria andFidEqualTo(Integer value) {
            addCriterion("fid =", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotEqualTo(Integer value) {
            addCriterion("fid <>", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidGreaterThan(Integer value) {
            addCriterion("fid >", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fid >=", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidLessThan(Integer value) {
            addCriterion("fid <", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidLessThanOrEqualTo(Integer value) {
            addCriterion("fid <=", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidIn(List<Integer> values) {
            addCriterion("fid in", values, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotIn(List<Integer> values) {
            addCriterion("fid not in", values, "fid");
            return (Criteria) this;
        }

        public Criteria andFidBetween(Integer value1, Integer value2) {
            addCriterion("fid between", value1, value2, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotBetween(Integer value1, Integer value2) {
            addCriterion("fid not between", value1, value2, "fid");
            return (Criteria) this;
        }

        public Criteria andFnameIsNull() {
            addCriterion("fname is null");
            return (Criteria) this;
        }

        public Criteria andFnameIsNotNull() {
            addCriterion("fname is not null");
            return (Criteria) this;
        }

        public Criteria andFnameEqualTo(String value) {
            addCriterion("fname =", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotEqualTo(String value) {
            addCriterion("fname <>", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameGreaterThan(String value) {
            addCriterion("fname >", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameGreaterThanOrEqualTo(String value) {
            addCriterion("fname >=", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameLessThan(String value) {
            addCriterion("fname <", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameLessThanOrEqualTo(String value) {
            addCriterion("fname <=", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameLike(String value) {
            addCriterion("fname like", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotLike(String value) {
            addCriterion("fname not like", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameIn(List<String> values) {
            addCriterion("fname in", values, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotIn(List<String> values) {
            addCriterion("fname not in", values, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameBetween(String value1, String value2) {
            addCriterion("fname between", value1, value2, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotBetween(String value1, String value2) {
            addCriterion("fname not between", value1, value2, "fname");
            return (Criteria) this;
        }

        public Criteria andFidnameIsNull() {
            addCriterion("fidname is null");
            return (Criteria) this;
        }

        public Criteria andFidnameIsNotNull() {
            addCriterion("fidname is not null");
            return (Criteria) this;
        }

        public Criteria andFidnameEqualTo(String value) {
            addCriterion("fidname =", value, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameNotEqualTo(String value) {
            addCriterion("fidname <>", value, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameGreaterThan(String value) {
            addCriterion("fidname >", value, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameGreaterThanOrEqualTo(String value) {
            addCriterion("fidname >=", value, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameLessThan(String value) {
            addCriterion("fidname <", value, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameLessThanOrEqualTo(String value) {
            addCriterion("fidname <=", value, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameLike(String value) {
            addCriterion("fidname like", value, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameNotLike(String value) {
            addCriterion("fidname not like", value, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameIn(List<String> values) {
            addCriterion("fidname in", values, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameNotIn(List<String> values) {
            addCriterion("fidname not in", values, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameBetween(String value1, String value2) {
            addCriterion("fidname between", value1, value2, "fidname");
            return (Criteria) this;
        }

        public Criteria andFidnameNotBetween(String value1, String value2) {
            addCriterion("fidname not between", value1, value2, "fidname");
            return (Criteria) this;
        }

        public Criteria andFmethodIsNull() {
            addCriterion("fmethod is null");
            return (Criteria) this;
        }

        public Criteria andFmethodIsNotNull() {
            addCriterion("fmethod is not null");
            return (Criteria) this;
        }

        public Criteria andFmethodEqualTo(String value) {
            addCriterion("fmethod =", value, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodNotEqualTo(String value) {
            addCriterion("fmethod <>", value, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodGreaterThan(String value) {
            addCriterion("fmethod >", value, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodGreaterThanOrEqualTo(String value) {
            addCriterion("fmethod >=", value, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodLessThan(String value) {
            addCriterion("fmethod <", value, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodLessThanOrEqualTo(String value) {
            addCriterion("fmethod <=", value, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodLike(String value) {
            addCriterion("fmethod like", value, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodNotLike(String value) {
            addCriterion("fmethod not like", value, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodIn(List<String> values) {
            addCriterion("fmethod in", values, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodNotIn(List<String> values) {
            addCriterion("fmethod not in", values, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodBetween(String value1, String value2) {
            addCriterion("fmethod between", value1, value2, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFmethodNotBetween(String value1, String value2) {
            addCriterion("fmethod not between", value1, value2, "fmethod");
            return (Criteria) this;
        }

        public Criteria andFiconIsNull() {
            addCriterion("ficon is null");
            return (Criteria) this;
        }

        public Criteria andFiconIsNotNull() {
            addCriterion("ficon is not null");
            return (Criteria) this;
        }

        public Criteria andFiconEqualTo(String value) {
            addCriterion("ficon =", value, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconNotEqualTo(String value) {
            addCriterion("ficon <>", value, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconGreaterThan(String value) {
            addCriterion("ficon >", value, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconGreaterThanOrEqualTo(String value) {
            addCriterion("ficon >=", value, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconLessThan(String value) {
            addCriterion("ficon <", value, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconLessThanOrEqualTo(String value) {
            addCriterion("ficon <=", value, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconLike(String value) {
            addCriterion("ficon like", value, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconNotLike(String value) {
            addCriterion("ficon not like", value, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconIn(List<String> values) {
            addCriterion("ficon in", values, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconNotIn(List<String> values) {
            addCriterion("ficon not in", values, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconBetween(String value1, String value2) {
            addCriterion("ficon between", value1, value2, "ficon");
            return (Criteria) this;
        }

        public Criteria andFiconNotBetween(String value1, String value2) {
            addCriterion("ficon not between", value1, value2, "ficon");
            return (Criteria) this;
        }

        public Criteria andFdescIsNull() {
            addCriterion("fdesc is null");
            return (Criteria) this;
        }

        public Criteria andFdescIsNotNull() {
            addCriterion("fdesc is not null");
            return (Criteria) this;
        }

        public Criteria andFdescEqualTo(Integer value) {
            addCriterion("fdesc =", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescNotEqualTo(Integer value) {
            addCriterion("fdesc <>", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescGreaterThan(Integer value) {
            addCriterion("fdesc >", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescGreaterThanOrEqualTo(Integer value) {
            addCriterion("fdesc >=", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescLessThan(Integer value) {
            addCriterion("fdesc <", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescLessThanOrEqualTo(Integer value) {
            addCriterion("fdesc <=", value, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescIn(List<Integer> values) {
            addCriterion("fdesc in", values, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescNotIn(List<Integer> values) {
            addCriterion("fdesc not in", values, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescBetween(Integer value1, Integer value2) {
            addCriterion("fdesc between", value1, value2, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFdescNotBetween(Integer value1, Integer value2) {
            addCriterion("fdesc not between", value1, value2, "fdesc");
            return (Criteria) this;
        }

        public Criteria andFbzIsNull() {
            addCriterion("fbz is null");
            return (Criteria) this;
        }

        public Criteria andFbzIsNotNull() {
            addCriterion("fbz is not null");
            return (Criteria) this;
        }

        public Criteria andFbzEqualTo(String value) {
            addCriterion("fbz =", value, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzNotEqualTo(String value) {
            addCriterion("fbz <>", value, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzGreaterThan(String value) {
            addCriterion("fbz >", value, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzGreaterThanOrEqualTo(String value) {
            addCriterion("fbz >=", value, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzLessThan(String value) {
            addCriterion("fbz <", value, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzLessThanOrEqualTo(String value) {
            addCriterion("fbz <=", value, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzLike(String value) {
            addCriterion("fbz like", value, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzNotLike(String value) {
            addCriterion("fbz not like", value, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzIn(List<String> values) {
            addCriterion("fbz in", values, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzNotIn(List<String> values) {
            addCriterion("fbz not in", values, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzBetween(String value1, String value2) {
            addCriterion("fbz between", value1, value2, "fbz");
            return (Criteria) this;
        }

        public Criteria andFbzNotBetween(String value1, String value2) {
            addCriterion("fbz not between", value1, value2, "fbz");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}